import random
a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&\()*+,-."
n,s = input().split(',')
random.seed(int(s))
for i in range(0,int(n)):
    s = random.choice(a)
    print(s,end='')